
#ifndef _PWM_TIM2_H
#define _PWM_TIM2_H

typedef void (*pwm_init)(void);
typedef void (*pwm_set)(unsigned char value);

typedef struct {
    pwm_init	Init;
    pwm_set		SetR;
    pwm_set		SetG;
    pwm_set		SetB;

} pwm_interface;

extern pwm_interface UserPWM;


void PWM_TIM2_Init(void);
void SetR_Value(unsigned char value);
void SetG_Value(unsigned char value);
void SetB_Value(unsigned char value);


#endif		//_PWM_TIM2_H


